"""hospitaloa URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from system_setup import views
from Oa_system import views as oa_views


urlpatterns = [
    path('home.html', views.home.as_view()),
    path('organization.html', views.organization.as_view()),
    path('set_up.html', views.set_up.as_view()),
    path('new_role.html', views.new_role.as_view()),
    path('role_list.html', views.role_list.as_view()),
    path('permissions_associated.html', views.permissions_associated.as_view()),
    path('linked_list.html', views.linked_list.as_view()),
    path('user-list', views.UserListView.as_view()),
    path('department-import-api', views.DepartmentImportApiView.as_view()),
    path('department-detail-import-api', views.DepartmentDetailImportApiView.as_view()),
    path('update-signature-picture', views.UpdateSignaturePictureView.as_view()),
    path('SuperSU_Pro.html', views.SuperSU_Pro.as_view()),
    path('update-headPortrait-view', views.UpdateHeadPortraitView.as_view()),
    path('get_heard_pic', views.get_heard_pic.as_view()),
    path('permissions_validation', views.permissions_validation.as_view()),
    path('customer_form_view', views.CustomerFormView.as_view()),
    path('user-defined', views.UserDefind.as_view()),
    path('order_define', views.OrderDefine.as_view()),
    path('admin-add', views.admin_add.as_view()),
    path('customer_form_detail_view', views.CustomerFormDetailView.as_view()),      # 申请页
    path('low_code_bill_detail_view', views.LowCodeBillDetailView.as_view()),       # 详情页
    path('low_code_bill_view', views.LowCodeBillView.as_view()),
    path('Low_code_bill_write_view', views.LowCodeBillWriteView.as_view()),
    path('Staffing_view', oa_views.StaffingView.as_view()),                 # 创建岗位
    path('staffing_list_view', oa_views.StaffingList.as_view()),
    path('staffing_delete', oa_views.StaffingDeleteView.as_view()),
    path('function_list_view', oa_views.FunctionListView.as_view()),        # 创建职能科室
    path('function_delete_view', oa_views.FunctionDeleteView.as_view()),
    path('download_excel', views.download_excel.as_view()),                         # 下载excel文件，全部员工
    path('EnterVoting', views.EnterVoting.as_view()),                       # 投票权限
    path('CheckJurisdiction', views.CheckJurisdiction.as_view()),
    path('CheckDirector', views.CheckDirector.as_view()),
    path('start_meeting', views.start_meeting.as_view()),                       # 开始开会（投票）
    path('remove_leader', views.remove_leader.as_view()),                       # 移除参会领导
    path('authority_confirm', views.AuthorityConfirm.as_view()),
    path('document_confirm', views.document_confirm.as_view()),
    path('DeleteFlow', views.DeleteFlow.as_view()),                     # 删除差旅报销已办
    path('MeetingPermissions', views.MeetingPermissions.as_view()),  # 点击开会的权限
    path('UploadExcel', views.UploadExcel.as_view()),  # 上传只能分组人员
    path('QueryAuthorization', views.QueryAuthorization.as_view()),  # 上传只能分组人员
    path('PrintingIssues', views.PrintingIssues.as_view()),  # 议题、用印权限管理
    path('SignaturePersonnel', views.SignaturePersonnel.as_view()),             # 考勤签字
    path('ExportData', views.ExportData.as_view()),                             # 考勤表导出
    path('ShelveFlow', views.shelve_flow.as_view()),  # 流程搁置
    path('reduction', views.reduction.as_view()),       # 流程还原
    path('tra_bus_api', views.TraBusApi.as_view()),  # 差旅报销权限
    path('add_empower', views.add_empower.as_view()),  # 添加授权
    path('can_modify', views.can_modify.as_view()),  # 用印授权，默认通过的可以修改
    path('download_file', views.download_file.as_view()),  # 添加授权
    path('get_scheduling', views.get_scheduling.as_view()),  # 获取首页排班信息
    path('my_to_do_list', views.my_to_do_list.as_view()),  # 获取首页我的待办
    path('notice_announcement', views.notice_announcement.as_view()),  # 获取首页通知公告
    path('my_receipt', views.my_receipt.as_view()),  # 获取我的收文
    path('my_mail', views.my_mail.as_view()),  # 获取我的邮件
    path('get_next', views.GetNext.as_view()),              # 获取下（上）一个用印流程
    path('print_directory', views.PrintDirectory.as_view()),  # 打印议题目录
    path('PartyAuthority', views.PartyAuthority.as_view()),  # 党委经费权限
    path('select_user_data', views.select_user_data.as_view()),  # 查询用户信息
    path('UploadRoster', views.UploadRoster.as_view()),  # 批量更新用户表
    path('Authorizationverification', views.Authorizationverification.as_view()),  # 医德医风科室汇总权限核定
    path('ScanQRCodeToSignIn', views.ScanQRCodeToSignIn.as_view()),                 # 扫码签到
    path('GetScanQRCodeData', views.GetScanQRCodeData.as_view()),                   # 获取扫码信息
    path('topic_leave', views.topic_leave.as_view()),  # 议题请假
    path('download_topic_file', views.download_topic_file.as_view()),  # 议题请假
]
